/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import javax.vecmath.Matrix4f;
/*    */ import net.minecraft.client.renderer.GlStateManager;
/*    */ import net.minecraft.client.renderer.block.model.IBakedModel;
/*    */ import net.minecraft.client.renderer.block.model.ItemCameraTransforms;
/*    */ import net.minecraft.client.renderer.block.model.ItemTransformVec3f;
/*    */ import org.apache.commons.lang3.tuple.Pair;
/*    */ import org.lwjgl.util.vector.Vector3f;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class fo
/*    */   extends uf
/*    */ {
/*    */   private final ItemCameraTransforms q;
/*    */   private ela.eos/moe/dragoncore/vga g;
/*    */   
/*    */   public ela.eos/moe/dragoncore/vga getIconInfo() {
/* 21 */     return this.g;
/*    */   }
/*    */ 
/*    */ 
/*    */   
/*    */   public fo(IBakedModel iBakedModel, ela.eos/moe/dragoncore/vga eos/moe/dragoncore/vga1) {
/* 27 */     super(null, iBakedModel, null);
/*    */     
/* 29 */     this.g = eos/moe/dragoncore/vga1;
/*    */     
/* 31 */     ItemTransformVec3f itemTransformVec3f1 = new ItemTransformVec3f(new Vector3f(0.0F, 0.0F, 0.0F), new Vector3f(0.0F, 2.0F, 0.0F), new Vector3f(0.5F, 0.5F, 0.5F));
/* 32 */     ItemTransformVec3f itemTransformVec3f2 = new ItemTransformVec3f(new Vector3f(0.0F, 180.0F, 0.0F), new Vector3f(0.0F, 13.0F, 7.0F), new Vector3f(1.0F, 1.0F, 1.0F));
/* 33 */     ItemTransformVec3f itemTransformVec3f3 = new ItemTransformVec3f(new Vector3f(0.0F, 0.0F, 0.0F), new Vector3f(0.0F, 3.0F, 1.0F), new Vector3f(0.55F, 0.55F, 0.55F));
/* 34 */     ItemTransformVec3f itemTransformVec3f4 = new ItemTransformVec3f(new Vector3f(0.0F, -90.0F, 25.0F), new Vector3f(1.13F, 3.2F, 1.13F), new Vector3f(0.68F, 0.68F, 0.68F));
/* 35 */     ItemTransformVec3f itemTransformVec3f5 = new ItemTransformVec3f(new Vector3f(0.0F, 180.0F, 0.0F), new Vector3f(0.0F, 0.0F, 0.0F), new Vector3f(1.0F, 1.0F, 1.0F));
/*    */     
/* 37 */     this.q = new ItemCameraTransforms(itemTransformVec3f3, itemTransformVec3f3, itemTransformVec3f4, itemTransformVec3f4, itemTransformVec3f2, ItemTransformVec3f.field_178366_a, itemTransformVec3f1, itemTransformVec3f5);
/*    */   }
/*    */ 
/*    */ 
/*    */   
/*    */   public Pair<? extends IBakedModel, Matrix4f> handlePerspective(ItemCameraTransforms.TransformType transformType) {
/* 43 */     hw.v(this.g.t());
/* 44 */     if (this.g.v() > 0.0F) {
/* 45 */       GlStateManager.func_179152_a(this.g.v(), this.g.v(), this.g.v());
/*    */     }
/*    */     
/* 48 */     if (this.g.z().size() == 3) {
/* 49 */       GlStateManager.func_179109_b(((Float)this.g
/* 50 */           .z().get(0)).floatValue(), ((Float)this.g
/* 51 */           .z().get(1)).floatValue(), ((Float)this.g
/* 52 */           .z().get(2)).floatValue());
/*    */     }
/*    */ 
/*    */     
/* 56 */     if (transformType == ItemCameraTransforms.TransformType.FIRST_PERSON_RIGHT_HAND) {
/* 57 */       if (this.g.z()) {
/* 58 */         GlStateManager.func_179137_b(-0.56D, 0.5D, -0.2D);
/*    */       } else {
/* 60 */         GlStateManager.func_179137_b(0.25D, 0.12D, -0.12D);
/* 61 */         GlStateManager.func_179114_b(-28.0F, 1.0F, 0.0F, 0.0F);
/* 62 */         GlStateManager.func_179114_b(-90.0F, 0.0F, 1.0F, 0.0F);
/* 63 */         GlStateManager.func_179139_a(0.85D, 0.85D, 0.85D);
/*    */       } 
/*    */     }
/* 66 */     if (transformType == ItemCameraTransforms.TransformType.FIRST_PERSON_LEFT_HAND) {
/* 67 */       if (this.g.z()) {
/* 68 */         GlStateManager.func_179137_b(0.56D, 0.5D, -0.2D);
/*    */       } else {
/* 70 */         GlStateManager.func_179137_b(-0.25D, 0.12D, -0.08D);
/* 71 */         GlStateManager.func_179114_b(-28.0F, 1.0F, 0.0F, 0.0F);
/* 72 */         GlStateManager.func_179114_b(-90.0F, 0.0F, 1.0F, 0.0F);
/* 73 */         GlStateManager.func_179139_a(0.85D, 0.85D, 0.85D);
/*    */       } 
/*    */     }
/*    */     
/* 77 */     if (transformType == ItemCameraTransforms.TransformType.THIRD_PERSON_RIGHT_HAND || transformType == ItemCameraTransforms.TransformType.THIRD_PERSON_LEFT_HAND)
/*    */     {
/* 79 */       if (this.g.v()) {
/* 80 */         GlStateManager.func_179137_b(0.0D, 0.25D, 0.03D);
/* 81 */         GlStateManager.func_179114_b(-55.0F, 1.0F, 0.0F, 0.0F);
/* 82 */         GlStateManager.func_179114_b(-90.0F, 0.0F, 1.0F, 0.0F);
/* 83 */         GlStateManager.func_179139_a(0.85D, 0.85D, 0.85D);
/*    */       } else {
/* 85 */         GlStateManager.func_179139_a(0.55D, 0.55D, 0.55D);
/* 86 */         GlStateManager.func_179137_b(0.0D, 0.34D, 0.115D);
/*    */       } 
/*    */     }
/*    */     
/* 90 */     if (transformType == ItemCameraTransforms.TransformType.GROUND) {
/* 91 */       GlStateManager.func_179137_b(0.0D, 0.13D, 0.0D);
/* 92 */       GlStateManager.func_179139_a(0.5D, 0.5D, 0.5D);
/*    */     } 
/*    */     
/* 95 */     Pair pair = this.w.handlePerspective(transformType);
/*    */     
/* 97 */     return Pair.of(new fo((IBakedModel)pair.getKey(), this.g), pair.getRight());
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\fo.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */